package com.xteam.xnetworkdisk.scheduled;

import com.xteam.xnetworkdisk.sys.dao.ShareDao;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class DeleteShareController {

    @Resource
    private ShareDao shareDao;

    @Scheduled(cron = "0 0 1 * * ?")
    public void deleteExpireShare() {
        shareDao.autoDeleteExpireShare();
    }
}
